using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class SendFeedbackRequest : GeneratedMessageLite<SendFeedbackRequest, SendFeedbackRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<SendFeedbackRequest, SendFeedbackRequest.Builder>
		{
			private bool resultIsReadOnly;
			private SendFeedbackRequest result;
			protected override SendFeedbackRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override SendFeedbackRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override SendFeedbackRequest DefaultInstanceForType
			{
				get
				{
					return SendFeedbackRequest.DefaultInstance;
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public string MachineType
			{
				get
				{
					return this.result.MachineType;
				}
				set
				{
					this.SetMachineType(value);
				}
			}
			public string Content
			{
				get
				{
					return this.result.Content;
				}
				set
				{
					this.SetContent(value);
				}
			}
			public Builder()
			{
				this.result = SendFeedbackRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(SendFeedbackRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private SendFeedbackRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					SendFeedbackRequest other = this.result;
					this.result = new SendFeedbackRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override SendFeedbackRequest.Builder Clear()
			{
				this.result = SendFeedbackRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override SendFeedbackRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new SendFeedbackRequest.Builder(this.result);
				}
				return new SendFeedbackRequest.Builder().MergeFrom(this.result);
			}
			public override SendFeedbackRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override SendFeedbackRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is SendFeedbackRequest)
				{
					return this.MergeFrom((SendFeedbackRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override SendFeedbackRequest.Builder MergeFrom(SendFeedbackRequest other)
			{
				return this;
			}
			public override SendFeedbackRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override SendFeedbackRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(SendFeedbackRequest._sendFeedbackRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = SendFeedbackRequest._sendFeedbackRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 10u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseRequest.Builder builder = BaseRequest.CreateBuilder();
							if (this.result.hasBaseRequest)
							{
								builder.MergeFrom(this.BaseRequest);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseRequest = builder.BuildPartial();
							continue;
						}
					}
					else
					{
						if (num3 == 18u)
						{
							this.result.hasMachineType = input.ReadString(ref this.result.machineType_);
							continue;
						}
						if (num3 == 26u)
						{
							this.result.hasContent = input.ReadString(ref this.result.content_);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public SendFeedbackRequest.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public SendFeedbackRequest.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public SendFeedbackRequest.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public SendFeedbackRequest.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
			public SendFeedbackRequest.Builder SetMachineType(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasMachineType = true;
				this.result.machineType_ = value;
				return this;
			}
			public SendFeedbackRequest.Builder ClearMachineType()
			{
				this.PrepareBuilder();
				this.result.hasMachineType = false;
				this.result.machineType_ = "";
				return this;
			}
			public SendFeedbackRequest.Builder SetContent(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasContent = true;
				this.result.content_ = value;
				return this;
			}
			public SendFeedbackRequest.Builder ClearContent()
			{
				this.PrepareBuilder();
				this.result.hasContent = false;
				this.result.content_ = "";
				return this;
			}
		}
		public const int BaseRequestFieldNumber = 1;
		public const int MachineTypeFieldNumber = 2;
		public const int ContentFieldNumber = 3;
		private static readonly SendFeedbackRequest defaultInstance;
		private static readonly string[] _sendFeedbackRequestFieldNames;
		private static readonly uint[] _sendFeedbackRequestFieldTags;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private bool hasMachineType;
		private string machineType_ = "";
		private bool hasContent;
		private string content_ = "";
		private int memoizedSerializedSize = -1;
		public static SendFeedbackRequest DefaultInstance
		{
			get
			{
				return SendFeedbackRequest.defaultInstance;
			}
		}
		public override SendFeedbackRequest DefaultInstanceForType
		{
			get
			{
				return SendFeedbackRequest.DefaultInstance;
			}
		}
		protected override SendFeedbackRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public string MachineType
		{
			get
			{
				return this.machineType_;
			}
		}
		public string Content
		{
			get
			{
				return this.content_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseRequest && this.BaseRequest.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseRequest);
				}
				if (this.hasMachineType)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.MachineType);
				}
				if (this.hasContent)
				{
					num += CodedOutputStream.ComputeStringSize(3, this.Content);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private SendFeedbackRequest()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] sendFeedbackRequestFieldNames = SendFeedbackRequest._sendFeedbackRequestFieldNames;
			if (this.hasBaseRequest)
			{
				output.WriteMessage(1, sendFeedbackRequestFieldNames[0], this.BaseRequest);
			}
			if (this.hasMachineType)
			{
				output.WriteString(2, sendFeedbackRequestFieldNames[2], this.MachineType);
			}
			if (this.hasContent)
			{
				output.WriteString(3, sendFeedbackRequestFieldNames[1], this.Content);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			if (this.hasMachineType)
			{
				num ^= this.machineType_.GetHashCode();
			}
			if (this.hasContent)
			{
				num ^= this.content_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			SendFeedbackRequest sendFeedbackRequest = value as SendFeedbackRequest;
			return sendFeedbackRequest != null && (this.hasBaseRequest == sendFeedbackRequest.hasBaseRequest && (!this.hasBaseRequest || this.baseRequest_.Equals(sendFeedbackRequest.baseRequest_))) && (this.hasMachineType == sendFeedbackRequest.hasMachineType && (!this.hasMachineType || this.machineType_.Equals(sendFeedbackRequest.machineType_))) && (this.hasContent == sendFeedbackRequest.hasContent && (!this.hasContent || this.content_.Equals(sendFeedbackRequest.content_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<SendFeedbackRequest, SendFeedbackRequest.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
			GeneratedMessageLite<SendFeedbackRequest, SendFeedbackRequest.Builder>.PrintField("MachineType", this.hasMachineType, this.machineType_, writer);
			GeneratedMessageLite<SendFeedbackRequest, SendFeedbackRequest.Builder>.PrintField("Content", this.hasContent, this.content_, writer);
		}
		public static SendFeedbackRequest ParseFrom(byte[] data)
		{
			return SendFeedbackRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private SendFeedbackRequest MakeReadOnly()
		{
			return this;
		}
		public static SendFeedbackRequest.Builder CreateBuilder()
		{
			return new SendFeedbackRequest.Builder();
		}
		public override SendFeedbackRequest.Builder ToBuilder()
		{
			return SendFeedbackRequest.CreateBuilder(this);
		}
		public override SendFeedbackRequest.Builder CreateBuilderForType()
		{
			return new SendFeedbackRequest.Builder();
		}
		public static SendFeedbackRequest.Builder CreateBuilder(SendFeedbackRequest prototype)
		{
			return new SendFeedbackRequest.Builder(prototype);
		}
		static SendFeedbackRequest()
		{
			SendFeedbackRequest.defaultInstance = new SendFeedbackRequest().MakeReadOnly();
			SendFeedbackRequest._sendFeedbackRequestFieldNames = new string[]
			{
				"BaseRequest",
				"Content",
				"MachineType"
			};
			SendFeedbackRequest._sendFeedbackRequestFieldTags = new uint[]
			{
				10u,
				26u,
				18u
			};
			object.ReferenceEquals(micromsg.Proto.SendFeedbackRequest.Descriptor, null);
		}
	}
}
